/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

.sidebar {
  max-height: calc(100vh - (var(--ifm-navbar-height) + 2rem));
  overflow-y: auto;
  position: sticky;
  top: var(--ifm-navbar-height);
  padding: 20px 12px 0 0;
  margin-left: -20px;
}

.sidebarHeader {
  font-size: var(--ifm-h4-font-size);
  font-weight: var(--ifm-font-weight-bold);
  padding-left: 12px;
  display: block;
}

.sidebarItemTitle {
  color: #999;
  margin-top: 3px;
}

.sidebarItemList {
  font-size: 13px;
}

.sidebarItem {
  margin-top: 0.1rem;
  line-height: 18px;
}

.sidebarItemLink {
  color: var(--ifm-font-color-base);
  padding: 0.7rem 8px;
  display: block;
  border-left: 4px solid transparent;
  border-radius: 0.25rem;
  line-height: 18px;
  border-bottom: 1px solid #eee;
}

.sidebarItemLink:hover {
  background: var(--ifm-menu-color-background-active);
  color: var(--ifm-font-color-base);
  text-decoration: none;
}

.sidebarItemLinkActive {
  color: var(--ifm-font-color-base);
  background: var(--ifm-menu-color-background-active);
  border-left-color: var(--ifm-menu-color-active);
  font-weight: 700;
}

@media (max-width: 996px) {
  .sidebar {
    display: none;
  }
}
